package com.machuxin.course.patterns.adapter.objectAdapter;

import com.machuxin.course.patterns.adapter.classAdapter.AC220;
import com.machuxin.course.patterns.adapter.classAdapter.DC5;

/**
 * 对象适配器
 */
public class PowerAdapter implements DC5 {

    private AC220 ac220;

    public PowerAdapter(AC220 ac220) {
        this.ac220 = ac220;
    }

    @Override
    public int outputDV5() {
        return ac220.outputAC220() / 22;
    }
}
